package model

import "gorm.io/gorm"

type FirstTimePostport struct {
	gorm.Model
	FirstTimeTeacherInfoID uint                 `gorm:"index;not null;foreignKey:FirstTimeTeacherInfoID;constraint:OnDelete:CASCADE"`
	PostportUrl            string               `json:"postport_url" validate:"required"`
	FirstTimeTeacherInfo   FirstTimeTeacherInfo `gorm:"foreignKey:FirstTimeTeacherInfoID"`
}

func (FirstTimePostport) TableName() string {
	return "first_time_postport"
}
